zabbix scripts

Alibabacloud.com offers a wide variety of articles about zabbix scripts, easily find your zabbix scripts information here online.

Related Tags:

Zabbix monitoring using Python scripts to send mail

/sendmail.log 2>1echo "******" >>/usr/local/zabbix/share/zabbix/alertscripts/sendmail.log 2>1Note that the arguments must be extended in quotation marks, otherwise the parameters will not be fully recognized.send_alert_mail.py Script content:Cat send_alert_mail.py#!/usr/bin/python#coding =utf-8‘‘‘@date 20160808@author LJB‘‘‘Import SysImport SmtplibFrom Email.mime.text import Mimetextmailto_list=[' [email pr

Zabbix monitoring Oracle databases with Orabbix and custom scripts

permanentlocal55040072.78 6 rowsselected.The above is taken out of the data, since the data taken out, then the rest is to do is to get the data into the Zabbix.The following two scripts are used to format and value the extracted data:[Email protected] opt]# cat/usr/local/zabbix/scripts/oracle_discovery.sh #!/bin/bash tablespace= ' cat/tmp /tablespace.log |awk '

Zabbix 3.0.2 Custom Scripts

There is a notification queue, if you exceed a certain value, you need to call the policeThe query interface can return the number of queues, in the form of the number of json,data followed by the number of queues{"Code": 0, "message": "Success", "Data": 22}Edit the configuration file in the Zabbix client zabbix_agentd.confVim/usr/local/zabbix-agent/zabbix_agentd.confAdd Blue SectionLogfile=/tmp/zabbix_agen

Automatic installation of Zabbix client shell scripts

#server=127.0.0.1#server=x.x.x.x#g '/usr/local/ Zabbix/conf/zabbix_agentd.confchecksed-r-i ' s/serveractive=127.0.0.1/#ServerActive =127.0.0.1/g '/usr /local/zabbix/conf/zabbix_agentd.confcheckip= '/sbin/ifconfig|grep "addr" |grep "192.168." | awk ' {print$2} ' |awk-f ': ' ' {print$2} ' sed-r-i ' s#hostname=zabbixserver# Hostname= $ip #g "/usr/local/zabbix/conf/

Zabbix monitoring Redis Python3 scripts

One: Install the Redis-python moduleWGE thttps://pypi.python.org/packages/source/r/redis/redis-2.9.1.tar.gzTar XF redis-2.9.1.tar.gzCD redis-2.9.1Python setup.py InstallTwo: Configuration Zabbix(1) Put the zabbix-redis.py into the/usr/local/zabbix/etc/scripts directory(2) Change zabbix_agentd.conf Include${dir}/

Install zabbix-agent using shell scripts

[[Email protected] shell] # Cat zabbix. Sh #! /Bin/bash Set-x Host = 'hostname' Dir =/root Service iptables stop AZ () { Groupadd zabbix Useradd zabbix-G zabbix-S/sbin/nologin Tar-zxvf $ DIR/zabbix-1.8.5.tar.gz CD zabbix-1.8.5 ./

Install Zabbix server-side and client with fabric automation with installation scripts

( Env.software_zabbix_url.split ('/') [ -1][0:-7]): local ("./configure--prefix=%s--enable-server--enable-agent--with-mysql --with-net-snmp--with-libcurl "%env.software_make_ Path) local ("make Makeinstall ") #使用nginx的默认路径, You can modify the local yourself ("Cp-rfrontends /php/%s/zabbix "%env.project_html_path) local ("cpmisc/init.d/fedora/core/*/etc/init.d/") local ("chmod+x/etc/init.d/zabbix_* Chkconfig--addzabbix_server ") local ("chkconfig--

Custom Zabbix Monitoring Scripts

average, divided into and out. If the script executes every 1 minutes, the calculated traffic value is the flat value of 1 minutes. The script has two parameters the first is the name of the network card, such as: Eth0, the second is in or out is in or out of the traffic, the script can calculate the machine on all the network card traffic as long as the first parameter change Eth0,eth1,lo and so on. But it's a pity that the first run will automatically create a temporary file for the *net[io].

Zabbix monitoring MySQL Multi-instance and mariadb custom scripts and their deployment

hostname--key mysql.3359slave-check--value ' 0 'Elseif [${status59} = null]ThenZabbix_sender--zabbix-server zabbix-master-ip--port 10051--host hostname--key mysql.3359slave-check--value ' 9999999 9 'ElseZabbix_sender--zabbix-server zabbix-master-ip--port 10051--host hostname--key mysql.3359slave-check--value "$status

Zabbix Monitor nginx,php-fpm and MySQL memory usage and number of processes with custom scripts

Zabbix Monitor nginx,php-fpm and MySQL memory usage and number of processes with custom scriptsFirst, add a script under the Zabbix script directory and write the following code#!/bin/bash#license: GPL#mail: [Email protected]#date: 2015.04.16Top-bn1>/usr/local/zabbix-2.4.4/scripts/process.logLog=/usr/local/

Zabbix sends alarm emails using python scripts

: WingGitHub: https://github.com/wing324Email: wing324@126.com ''' from email import encodersfrom email. header import Headerfrom email. mime. text import MIMETextfrom email. utils import parseaddr, formataddrimport smtplibimport sysdef send_mail (_ to_email, _ subject, _ message): # define mail sending smtp_host = 'smtp. xxx. xx'from_email = 'XXX @ xxx. xx 'passwd = 'xxxxxx' msg = MIMEText (_ message, 'plain ', 'utf-8') msg ['subobject'] = _ Subject smtp_server = smtplib. SMTP (smtp_host, 25) s

Linux scripts that automatically install the Zabbix agent

-2.0.8.TAR.GZCDzabbix-2.0.8./configure--prefix=${PREFIX}--enable-agentRETVAL=$?checkReturn $RETVAL "Configure" makeretval=$?checkreturn $RETVAL "Compile" Makeinstallretval=$?checkreturn $RETVAL "Makeinstall" echo "zabbixagentdinstallok....!" mkdir-p/var/log/zabbixchownzabbix.zabbix/var/log/zabbixecho "configure zabbixstartupscript.....! " Cpmisc/init.d/fedora/core/zabbix_agentd/etc/init.d/chmod755/etc/init.d/zabbix_ agentdsed-i ' s#basedir=/usr/local#/za

Customizing monitoring scripts with Zabbix

= ' Date +%s 'd_old= ' Tail-2/tmp/neti.log|head-1 'd= ' echo ' $d _new-$d _old "|BC"if_net= ' echo ' $n/$d "|BC"Echo $if _netDate +%s>>/tmp/neti.loggrep "$eth" $net _file|awk ' {print $} ' >>/tmp/neti.logelif [$ = = "Out"] Thenn_new= ' grep ' $eth ' $net _file|awk ' {print $ A} 'n_old= ' tail-1/tmp/neto.log 'n= ' echo ' $n _new-$n _old "|BC"d_new= ' Date +%s 'd_old= ' Tail-2/tmp/neto.log|head-1 'd= ' echo ' $d _new-$d _old "|BC"if_net= ' echo ' $n/$d "|BC"Echo $if _netDate +%s>>/tmp/neto.loggrep

Zabbix monitoring MySQL Custom scripts how to get rid of annoying warning feedback

Shell statements that connect data in a scriptMysql_user= ' Zabbix ' mysql_pwd= ' 123456 ' mysql_host= ' 127.0.0.1 "mysql_port= ' 3306 ' mysql_conn= '/usr/local/mysql/bin/ Mysqladmin-u${mysql_user}-p${mysql_pwd}-h${mysql_host} "-p${mysql_port}"It was written in this way, but it will appear warning:using a password on the command line interface can be insecure. This hint, and there is no way to remove it, which causes the

Zabbix sending text messages through scripts

Zabbix text message by script principleand Zabbix e-mail is the same, are configured in action, the way to send text messages by calling SMS Company API to complete, of course, there are many online use 139 mailbox to send, this is actually called a call email, here is to repeat the method called script.Step Write a script that sends text messages. Plus executable permissions. Administration->

Zabbix sending text messages via scripts

Zabbix Sending SMS principles via scriptingand Zabbix email is the same, they are the action internal configuration, the Division API to complete. Of course, there are many on the Internet using 139 of mailboxes to send, this is actually called a call email, here is to repeat the method called script.Step Write a script that sends text messages. Plus the operational permissions. Administration-

Zabbix Monitoring Windows log Scripts

Zabbix Monitoring Windows log Scripts The script is used to monitor the logs on the Windows Server, view the log file at the end of n rows, and if n rows contain a field, output 0, otherwise output 1, and then zabbix the profile empty definition Kye, for monitoring.Text file line break is "\ n"Edit Script log.pyImportsysimportredeflast_lines (filename,lines=1): L

Zabbix monitoring MySQL Scripts

-uroot-p${mysql_pwd}-s $MYSQL _sockextended-status|grep-w "Com_insert" |cut-d "|" -f3 ' echo $result ;; com_delete) result= ' mysqladmin-uroot-p${mysql_pwd}-s $MYSQL _sockextended-status|grep-w "Com_delete" |cut-d "|" -f3 ' echo $result ;; com_commit) result= ' mysqladmin-uroot-p${mysql_pwd}-s $MYSQL _sockextended-status|grep-w "Com_commit" |cut-d "|" -f3 ' echo $result ;; bytes_sent) result= ' mysqladmin-uroot-p${mysql_pwd}-s $MYSQL _sockextended-status|grep-w "bytes_sent" |cut-d "|" -

Zabbix Monitor nginx,php-fpm and MySQL memory usage and number of processes with custom scripts

Zabbix Monitor nginx,php-fpm and MySQL memory usage and number of processes with custom scripts

Zabbix How to send alert messages using Python scripts

Objective Zabbix is a very powerful monitoring tool that can monitor server data for Linux and Windows, and can also extend the default monitoring by customizing keys, but the messages provided by your own email alerts are not very friendly. In this paper, we want to send the corresponding image and URL connection at the same time by the custom script. The steps are as follows: 1. Edit the zabbix_server.conf file and modify the Alertscriptspath param

Total Pages: 15 1 2 3 4 5 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.